<%--
  Created by IntelliJ IDEA.
  User: GZ
  Date: 2021/7/10
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改视频分类结果</title>
    <script>
        function closeWindow() {
            if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Chrome") != -1) {
                window.location.href = "about:blank";
                window.close();
            } else {
                window.opener = null;
                window.open("", "_self");
                window.close();
            }
        }
    </script>
</head>
<body>
   <c:choose>
       <c:when test="${1==param.rows}">
           <span style="color: blue;font-size: 24px">修改成功</span>
           <script>
               //刷新查询列表页面
               window.opener.location.reload(true);
           </script>
       </c:when>
       <c:when test="${0==param.rows}">
           <span style="color: red;font-size: 24px">该视频分类不存在或已被删除</span>
       </c:when>
       <c:otherwise>
           <span style="color: red;font-size: 24px">未知状态</span>
       </c:otherwise>
   </c:choose>
<div>
    <button type="button" onclick="closeWindow()">关闭窗口</button>
</div>
</body>
</html>
